<?php
$BFAHeQR;
goto b3ocQZgkHo;
FvjQ8EY0LC:
goto jGg5grvGS8;
zazEI1czR8:
$result = array('code' => 0x001, 'ae_url' => $tqq_url, 'haohao_api' => $tqq_url, 'haohao_url' => $longurl);
exit(json_encode($result));
goto YArmemp5Rz;
goto i9LdMce3ZA;
vxVSBbmnb4:
if ($row['type'] == 0x001) {
    goto bDdSPiwfLJ;
}
goto GAIIMShuX4;
bDdSPiwfLJ:
if (!$title) {
    goto tGWPv8diTi;
}
goto ryZefrLJ50;
goto M2ry6qdHs7;
Ktw1ToKU4D:
goto vcTIaViHSp;
rTXXfkI8ZS:
goto SRl1A0Rztb;
axRCUmgRwf:
if (empty($value)) {
    goto pcNjhmB2Hv;
}
goto ItHKIqLZYC;
b3ocQZgkHo:
goto zIxaMR6YKh;
YArmemp5Rz:
goto Hg6Q3UUAk7;
jGg5grvGS8:
exit($tqq_url);
goto OlV3ofUk_Q;
WksPSflrL0:
if (!$tqq_url) {
    goto HbElQApAiR;
}
goto iGyBoYi5_h;
HbElQApAiR:
exit('{"code":-1,"msg":"生成失败请更换短链接口！"}');
iGyBoYi5_h:
goto Qec0Ma2k_k;
IYNjIUyrVW:
exit('{"code":-1,"msg":"API对接密钥无法使用！请检查账号是否被封"}');
FrpUtT7m4j:
goto MVKJ9RnsZe;
NMaTn811Js:
sB1fy2M8M0:
goto C123v7Sbkx;
ItHKIqLZYC:
goto QwEuToG1s1;
pcNjhmB2Hv:
exit('{"msg":"URL地址不能为空！"}');
goto D_sIJ3gnuR;
QwEuToG1s1:
goto aY50P3ij1t;
OlV3ofUk_Q:
Hg6Q3UUAk7:
goto BXjdn1gsHP;
HiIrPy7h6F:
$keyrow = $DB->get_row("\123\x45\x4c\x45\x43\x54\x20\x2a\x20\x46\x52\117\115\40\155\x65\151\x68\x65\137\x75\163\x65\x72\40\127\110\105\x52\x45\40\141\160\151\x5f\153\145\x79\x3d\x27{$key}\47\x20\x6c\151\155\x69\164\x20\61");
if ($keyrow) {
    goto RvkZoUURVA;
}
goto ygyG82a517;
cOIQ0XcYgd:
imWPwl2AXM:
daILwSzrOQ:
$current_time = time();
if ($conf['jmsc'] != 0 && isset($_SESSION['last_submit_time'])) {
    goto X0VpAdmrw6;
}
goto FgKOb5q_7k;
goto QkBQWmHL38;
Gq9ZXszRrg:
if ($row['type'] != 0x001) {
    goto iS6OpY4O27;
}
goto NWPnKS2ypm;
iS6OpY4O27:
exit('{"code":2,"msg":"自定义标题只能会员享受！"}');
NWPnKS2ypm:
goto vxVSBbmnb4;
eSNzvcAmrG:
goto OR4KPh6LOR;
A8y1dkWo31:
$DB->query('insert into `meihe_list` (`domain`,`date`,`type`) values (\'' . $domain . '\',\'' . $date . '\',\'2\'\')');
wJIhR57SqY:
exit('{"msg":"免费生成次数用完，已禁止生成！"}');
goto WQpUMSKzha;
pEqlHc5kCL:
goto i_XjsvNkwi;
ZxDZEWFvoK:
if ($time_difference < $conf['jmsc']) {
    goto Z9VKk269I1;
}
goto bgLVcIqtau;
Z9VKk269I1:
goto sTl8x6bEvA;
vOFcGVnPwa:
RosjWG_jqJ:
goto Nm07RpsxfE;
kKGLoz7tqM:
IsTDAxV0CO:
$dljk = $apihost['djyum'] . 'fhapi.php?format=txt&type=' . $apihost['sbm'] . '&longurl=';
goto Ue7i3bGdl2;
sKgMnnyxg2:
if ($row['type'] <= 0x001 && 0 <= 0 && $row['endtime'] <= $date) {
    goto N8_D_JoaeB;
}
goto UtmdZ6OZXr;
N8_D_JoaeB:
if ($conf['hydq'] == 0x001) {
    goto SjFQU1wh8q;
}
goto rO1jbTGY_Y;
goto YsoIJoD2ua;
RYrx0t_P09:
if ($DB->query('insert into `meihe_report` (`title`,`url`,`duanl`,`scfl`,`upzid`,`uid`,`time`,`date`,`ip`,`reason`) values (\'' . $title . '\',\'' . $longurl . '\',\'' . $apihost['sbm'] . '\',\'2\',\'' . $userrow['zid'] . '\',\'' . $uid2 . '\',\'' . TIMESTAMP . '\',\'' . $date . '\',\'' . real_ip() . '\',\'' . $fhfsb . '\')')) {
    goto KSXsZXsESR;
}
goto mEfyaHUr7i;
KSXsZXsESR:
$_SESSION['user_login_mail'] = TIMESTAMP;
if (!($format === 'txt')) {
    goto zazEI1czR8;
}
goto FvjQ8EY0LC;
eucRpoDiDl:
jfLxd4Ig91:
goto tjTHENk7QQ;
lI0oPxtDJy:
$tqq_url = $tqq_url['' . $apihost['fhzd'] . ''];
LfvgI0cowR:
goto WksPSflrL0;
tcqeuKWHTi:
nEmuUH_3hR:
$uid2 = rand(0x0069f6bc7, 0x000003b9ac9ff);
if (!($api == 0x001)) {
    goto Hqf8MhMvKG;
}
goto g8arIYpONt;
Hqf8MhMvKG:
goto bYVDTYOQm7;
OsvkFdLfeC:
HUzaQjfRJT:
$title = daddslashes($_GET['title']);
$title = daddslashes($_POST['title']);
$key = daddslashes($_GET['key']);
goto HiIrPy7h6F;
goto eJCFtk81g8;
aY50P3ij1t:
if (!(strpos($value, 'http') === !1)) {
    goto qqSVaVnfUw;
}
goto Jv7T1S2wXB;
qqSVaVnfUw:
goto YaSC3GmyWX;
JU8dfsx2w7:
goto LO1Y2X3SzZ;
sTl8x6bEvA:
exit('{"code":-1,"msg":"生成频率太高！请等待' . $remaining_seconds . '秒后再生成"}');
bgLVcIqtau:
FgKOb5q_7k:
$_SESSION['last_submit_time'] = $current_time;
goto NxALHKHqvF;
goto l8nz19vFOH;
QVWfIeFcDG:
h_u84sYpr4:
if (!strexists($value, '.')) {
    goto N_yx4qTvvD;
}
goto RosjWG_jqJ;
N_yx4qTvvD:
exit('{"code":-1,"msg":"请您输入正确的域名！"}');
goto vOFcGVnPwa;
vDtiBJihkW:
goto bSzpKH92yJ;
iTD1ffDtK2:
exit('{"msg":"当前短链接口会员才能使用！"}');
bSzpKH92yJ:
goto TLf91fWNUD;
goto PmfBHp27h1;
MPbA0VTksI:
if (!($row['type'] != 0x001)) {
    goto lyVuPQ4VL8;
}
goto daILwSzrOQ;
lyVuPQ4VL8:
goto TBtd9VLVmi;
Rd_He1YRzL:
goto MSRLZXMYe8;
WQpUMSKzha:
sGzVpiGaOF:
T2UZnt_d2P:
goto JU8dfsx2w7;
cK24y5fLM4:
$value = NULL;
goto LSO9VST4Fz;
PmfBHp27h1:
goto RBzSNyEMFY;
tjTHENk7QQ:
if (!($apihost['dljk'] == 0x05)) {
    goto CuB5ooudAU;
}
goto FtZukvFHe8;
CuB5ooudAU:
goto XZlxUrsXtm;
XZlxUrsXtm:
goto A_n_3aqgNL;
NcF0susKiF:
$dljk = $apihost['apiurl'];
goto A_n_3aqgNL;
goto kKGLoz7tqM;
goto m22NREyUoE;
nfx0WDAdIw:
goto h_u84sYpr4;
NjnokxqIR6:
goto IGVrZgo85Z;
qLJ3jY21nR:
A_n_3aqgNL:
goto TyCmL2Of7u;
TyCmL2Of7u:
if (!($apihost['format'] == '1')) {
    goto GHpqOlnto8;
}
goto p8NbAAXxFy;
GHpqOlnto8:
if (!($apihost['format'] == '2')) {
    goto d_M9_hU6af;
}
goto BplBJZ057A;
goto POsoahVwKB;
lw2yHv7GDp:
exit('{"code":-1,"msg":"API对接密钥错误！"}');
qVme0hi5a5:
if (isset($_GET['longurl'])) {
    goto m6vOPguN4E;
}
goto JKFnNGCyku;
m6vOPguN4E:
goto svtSs1UvY4;
m22NREyUoE:
njh79MD02M:
if (!$myrow) {
    goto zCtH4oBGy3;
}
goto nEmuUH_3hR;
zCtH4oBGy3:
$DB->query('insert into `meihe_long` (`uid`,`url`) values (\'' . $uid . '\',\'' . $value . '\')');
goto tcqeuKWHTi;
ULg0OodDNK:
$row = $DB->get_row('SELECT * FROM meihe_list WHERE domain=\'' . $domain . '\' limit 1');
if (empty($row)) {
    goto omH7THs0Ja;
}
goto VKoVUKwfkM;
omH7THs0Ja:
$row = $DB->get_row('SELECT * FROM meihe_list WHERE domain=\'' . get_host($domain) . '\' and `fhy`=\'2\' limit 1');
goto pEqlHc5kCL;
LO1Y2X3SzZ:
if (!$conf['urlapi']) {
    goto hJH34yBcty;
}
goto zD3cTTz2yd;
hJH34yBcty:
exit('{"msg":"没有生成接口，联系站长添加"}');
zD3cTTz2yd:
goto pBlG3H7qkb;
Ue7i3bGdl2:
goto A_n_3aqgNL;
FtZukvFHe8:
$dljk = $apihost['duanl'] . 'ajax.php?act=dwzapi&url=';
goto qLJ3jY21nR;
wQtHw1lMVp:
goto bJJujtBNak;
bJJujtBNak:
$fhfsb = '直链方式';
$fhb = 'api/?';
E6nTmKoKDk:
$resulturl = $header . $conf['urlapi'] . $fhb . $uid2;
$apihost = $DB->get_row("\x53\105\x4c\x45\x43\x54\x20\x2a\x20\106\122\117\x4d\40\155\x65\151\150\145\137\x61\160\x69\x20\x57\x48\105\122\105\x20\163\142\155\x3d\x27{$vvalue}\47\40\154\151\155\x69\x74\x20\61");
goto berx18knOh;
l8nz19vFOH:
j1SVfmmjH_:
if (!(!$apihost || $apihost['jktz'] != 0x001)) {
    goto MbT1TVaVJL;
}
goto TOVXFSwKaf;
MbT1TVaVJL:
if (!$apihost || $apihost['jkfl'] != 0x001 && $row['type'] != 0x001) {
    goto iTD1ffDtK2;
}
goto vDtiBJihkW;
WWtVml8TLK:
g8arIYpONt:
goto wQtHw1lMVp;
MVKJ9RnsZe:
goto qVme0hi5a5;
x49QOkC3d5:
goto lw2yHv7GDp;
RwNLPltAcj:
$current_time = time();
if ($conf['hyjmsc'] != 0 && isset($_SESSION['last_submit_time'])) {
    goto cYCNTSulur;
}
goto j5JCDoL5sz;
cYCNTSulur:
$time_difference = $current_time - $_SESSION['last_submit_time'];
goto aEZasB7aLX;
DGIDl_cQr6:
goto YKIE0KYkQd;
goto imWPwl2AXM;
cqzi2OpZg_:
D_sIJ3gnuR:
if (!preg_match('/^http[s]?:\/\//', $value)) {
    goto ZhBZsrLXFP;
}
goto NE5aOeFI3f;
berx18knOh:
goto j1SVfmmjH_;
NxALHKHqvF:
YKIE0KYkQd:
$count = $DB->count("\x53\x45\114\105\x43\x54\40\143\x6f\165\x6e\164\x28\52\51\x20\x46\x52\x4f\x4d\x20\x6d\145\x69\150\145\137\162\145\x70\x6f\162\164\40\x57\x48\x45\122\105\40\x75\162\154\x3d\47{$value}\47");
if ($row['type'] != 0x001) {
    goto k93i1i0hgX;
}
goto i0UQ71UCNe;
pBlG3H7qkb:
$uid = shorturl($value);
$myrow = $DB->get_row('select * from meihe_long where url=\'' . $value . '\' limit 1');
goto njh79MD02M;
IGVrZgo85Z:
exit('{"msg":"域名格式不正确"}');
goto QVWfIeFcDG;
NE5aOeFI3f:
goto Y3AOnlF0UK;
ZhBZsrLXFP:
$value = 'http://' . $value;
Y3AOnlF0UK:
if (preg_match('/[-�]/', $value)) {
    goto NjnokxqIR6;
}
goto nfx0WDAdIw;
avEt8mwYZo:
if ($vvalue == null) {
    goto xA9CG9mZx8;
}
goto sB1fy2M8M0;
xA9CG9mZx8:
$vvalue = $conf['duan'];
goto NMaTn811Js;
goto hO62Em7BYZ;
YsoIJoD2ua:
SjFQU1wh8q:
$DB->query('DELETE FROM meihe_list WHERE domain=\'' . $domain . '\' ');
goto Tj7RB3VHAL;
S2W80qovM6:
$api = $_GET['api'];
goto OsvkFdLfeC;
Qec0Ma2k_k:
goto LSMSbg2mns;
iBaJEimadT:
$fhfsb = '缩短方式';
$fhb = 'api/s.php?';
Q_KM_EQHgt:
goto Ktw1ToKU4D;
B_Xdxk0hSm:
BplBJZ057A:
$tqq_url = file_get_contents($dljk . urlencode($resulturl));
$tqq_url = json_decode($tqq_url, !0);
goto lI0oPxtDJy;
TBtd9VLVmi:
goto RwNLPltAcj;
eJCFtk81g8:
SRl1A0Rztb:
$fhfsb = '跳转方式';
$fhb = 'api/t.php?';
vcTIaViHSp:
goto E6nTmKoKDk;
goto WWtVml8TLK;
wGj81hoG_R:
Ykbz_FGlcy:
goto BubYZw_NW0;
Nm07RpsxfE:
$url_arr = parse_url($longurl);
$domain = $url_arr['host'];
goto ULg0OodDNK;
i9LdMce3ZA:
ZJAINnREqI:
exit('{"code":-1,"msg":"生成频率太高！请等待' . $remaining_seconds . '秒后再生成"}');
nJntJPlaDZ:
j5JCDoL5sz:
$_SESSION['last_submit_time'] = $current_time;
goto DGIDl_cQr6;
jG9ZgVUxdM:
if (!($api == 0x00003)) {
    goto J0hIn4v453;
}
goto VOaowXDKF8;
J0hIn4v453:
exit('{"msg":"防洪方式不存在！"}');
goto Q_KM_EQHgt;
goto k1_lGOxyvM;
C123v7Sbkx:
if (isset($_POST['api'])) {
    goto XWbzc4EiP6;
}
goto ItvkQXhk6Q;
XWbzc4EiP6:
$api = $_POST['api'];
ItvkQXhk6Q:
goto rOmxAqFNBT;
ygyG82a517:
goto x49QOkC3d5;
RvkZoUURVA:
if ($keyrow['active'] == 0x001) {
    goto jYyKFv7Yvf;
}
goto FrpUtT7m4j;
jYyKFv7Yvf:
goto IYNjIUyrVW;
XsM5m9V_kc:
WPYkQJAqmT:
if ($title) {
    goto ewgdJCPB5P;
}
goto XYWHOXP4Th;
ewgdJCPB5P:
goto qNOCPkMQd9;
goto YtOUFomRue;
h33G6z72pQ:
if (!($apihost['dljk'] == 0x00003)) {
    goto LGD_0WfYZk;
}
goto NcF0susKiF;
LGD_0WfYZk:
if (!($apihost['dljk'] == 0x000004)) {
    goto jfLxd4Ig91;
}
goto IsTDAxV0CO;
goto eucRpoDiDl;
svtSs1UvY4:
goto Rd_He1YRzL;
RBzSNyEMFY:
TOVXFSwKaf:
exit('{"msg":"短链类型不存在！"}');
TLf91fWNUD:
goto h33G6z72pQ;
BbEAXDFYX6:
ENp2oQnbBa:
exit('{"code":2,"msg":"检测到你是会员请输入标题！"}');
ryZefrLJ50:
GAIIMShuX4:
XYWHOXP4Th:
goto MPbA0VTksI;
K383M9ZxfE:
$domain = parse_url($longurl, PHP_URL_HOST);
if (in_array($domain, $blacklist)) {
    goto iwMOnHxjiP;
}
goto WPYkQJAqmT;
iwMOnHxjiP:
exit('{"code":-1,"msg":"当前域名已被拉黑，无法生成！"}');
goto XsM5m9V_kc;
i0UQ71UCNe:
goto T2UZnt_d2P;
k93i1i0hgX:
if ($count > $conf['sccs']) {
    goto zF47tpzNUR;
}
goto sGzVpiGaOF;
zF47tpzNUR:
goto j6zcaPuoyb;
qNAEYV1nG_:
rO1jbTGY_Y:
exit('{"code":10,"msg":"当前域名会员已到期！请联系站长续费"}');
UtmdZ6OZXr:
AdQTa_lKZy:
$blacklist = explode('|', $conf['lhbamd']);
goto eSNzvcAmrG;
M2ry6qdHs7:
tGWPv8diTi:
goto ENp2oQnbBa;
KVslNBqB9M:
$tqq_url = file_get_contents($dljk . urlencode($resulturl));
goto LfvgI0cowR;
goto B_Xdxk0hSm;
bYVDTYOQm7:
goto r7J9T4OQ1Q;
r7J9T4OQ1Q:
if (!($api == 0x0002)) {
    goto a8Oq2Assu7;
}
goto rTXXfkI8ZS;
a8Oq2Assu7:
goto jG9ZgVUxdM;
POsoahVwKB:
d_M9_hU6af:
goto LfvgI0cowR;
p8NbAAXxFy:
goto KVslNBqB9M;
qNOCPkMQd9:
goto Gq9ZXszRrg;
k1_lGOxyvM:
VOaowXDKF8:
goto iBaJEimadT;
zIxaMR6YKh:
include './meihe/common.php';
header('Access-Control-Allow-Origin:*');
goto NPTaW8lDD1;
QkBQWmHL38:
X0VpAdmrw6:
$time_difference = $current_time - $_SESSION['last_submit_time'];
$remaining_seconds = $conf['jmsc'] - $time_difference;
goto ZxDZEWFvoK;
BubYZw_NW0:
goto X3u1L_CQqj;
rOmxAqFNBT:
if (isset($_GET['api'])) {
    goto AtT6Ful91y;
}
goto HUzaQjfRJT;
AtT6Ful91y:
goto S2W80qovM6;
OR4KPh6LOR:
goto K383M9ZxfE;
j_cv2IssUH:
goto s0lLDfxKQ0;
Jv7T1S2wXB:
$longurl = 'http://' . daddslashes($value);
s0lLDfxKQ0:
goto cqzi2OpZg_;
goto cOIQ0XcYgd;
MSRLZXMYe8:
$value = $_GET['longurl'];
JKFnNGCyku:
if (isset($_POST['longurl'])) {
    goto TE3fqBrUYm;
}
goto I4xuMQF5AE;
TE3fqBrUYm:
goto VnyFAmt8hP;
YtOUFomRue:
i_XjsvNkwi:
VKoVUKwfkM:
if ($row['type'] == 0x001) {
    goto YgVTBzwPrd;
}
goto AdQTa_lKZy;
YgVTBzwPrd:
goto sKgMnnyxg2;
VnyFAmt8hP:
$value = $_POST['longurl'];
I4xuMQF5AE:
goto axRCUmgRwf;
YaSC3GmyWX:
$longurl = daddslashes($value);
goto j_cv2IssUH;
aEZasB7aLX:
$remaining_seconds = $conf['hyjmsc'] - $time_difference;
if ($time_difference < $conf['hyjmsc']) {
    goto fHk2dbKlBr;
}
goto nJntJPlaDZ;
fHk2dbKlBr:
goto ZJAINnREqI;
goto BbEAXDFYX6;
NPTaW8lDD1:
header('Access-Control-Allow-Methods:GET,POST');
header('Access-Control-Allow-Headers:x-requested-with,content-type');
header('Content-Type: text/html; charset=utf-8');
goto cK24y5fLM4;
LSMSbg2mns:
goto RYrx0t_P09;
j6zcaPuoyb:
if ($conf['cgcs'] == 0x001) {
    goto GZqm8UdW70;
}
goto wJIhR57SqY;
GZqm8UdW70:
goto A8y1dkWo31;
Tj7RB3VHAL:
goto qNAEYV1nG_;
hO62Em7BYZ:
BXjdn1gsHP:
goto ACLv3Lc4Jr;
LSO9VST4Fz:
$format = isset($_GET['format']) ? $_GET['format'] : $_POST['format'];
if (isset($_GET['type'])) {
    goto Oq470F5Z2u;
}
goto Ykbz_FGlcy;
Oq470F5Z2u:
$vvalue = $_GET['type'];
goto wGj81hoG_R;
X3u1L_CQqj:
if (isset($_POST['type'])) {
    goto GrU0qhQUb2;
}
goto WI1_wq3kzQ;
GrU0qhQUb2:
$vvalue = $_POST['type'];
WI1_wq3kzQ:
goto avEt8mwYZo;
ACLv3Lc4Jr:
mEfyaHUr7i:
